package com.njbw.design_pattern.created.builder;

import lombok.Builder;
import lombok.Getter;
import lombok.ToString;

/**
 * Person 类
 *
 * @author 黄侯淳
 * @since JDK 1.8
 */
@Getter
@ToString
@Builder
public class Person {

    /**
     * 名称
     */
    private String name;
    /**
     * 年龄
     */
    private int age;
    /**
     * 地址
     */
    private String address;

    public static void main(String[] args) {
        Person person = Person.builder()
                .name("lily")
                .age(12)
                .address("shanghai")
                .build();
    }
}
